package ModelLayer;
public class Employee extends Person
{
    // instance variables - replace the example below with your own
    private String password;

    /**
     * Constructor for objects of class Employee
     * @param long id - The persons ID
     * @param String name - The persons name
     * @param String address - The persons address
     * @param String phoneNumber - The persons phone number
     * @param String email - The persons email
     * @param String password - The persons password
     */
    public Employee(long id, String name, String address, String phoneNumber, String email, String password)
    {
         super(id, name, address, phoneNumber, email);
         this.password = password;    
    }
    
    /**
     * This method returns the password.
     * 
     * @return  This persons password. As a String.
     */
    public String getPassword(){return password;}
    
    /**
     * This method changes the password.
     * 
     * @param   password    The new password.
     */
    public void setPassword(String password){this.password = password;}
}
